
class Project:

    def __init__(self, name, dict):
        self.name = name

        if dict == {}:
            self.info = ''
            self.license = ''
            self.homepage = ''
            self.repository_url = ''
            self.stars = ''
        else:
            self.info = dict.get('description')
            self.license = dict.get('repository_license')
            self.homepage = dict.get('homepage')
            self.repository_url = dict.get('repository_url')
            self.stars = dict.get('stars')